package Graphic;

import java.awt.Color;
import java.awt.Graphics;
import java.awt.event.ActionListener;

import Handle.MouseInput;
import Main.Game;

public class HUD{
	
	private MouseInput mouseInput;
	
	public HUD (MouseInput mouseInput)
	{
		this.mouseInput = mouseInput;
	}
	
	public void tick()
	{
		
	}
	
	public void render(Graphics g)
	{
		// top - title bar
		g.setColor(new Color(55, 055, 055, 80));
		g.fillRect(0, 0, Game.WIDTH, 20);
		
		// X button (close)
		if (mouseInput.getMouseHover(1, 100, 2, 200))
			g.setColor(Color.WHITE);
		else
			g.setColor(Color.BLUE);
		
		g.drawLine(Game.WIDTH - 2, 2, Game.WIDTH - 20, 20);
		g.drawLine(Game.WIDTH - 2 - 18 , 2, Game.WIDTH - 2, 20);
		
	}
	
}
